package com.my.hzb.user.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.my.hzb.entiy.Role;
import com.my.hzb.mapper.RoleMapper;

public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleMapper roleMapper;
	@Override
	public void add(Role role) {
		role.setCreateTime(new Date());
		role.setUpdateTime(new Date());
		roleMapper.insert(role);
	}

	@Override
	public void update(Role role) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Role role) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Role getOne(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Role> find(Role role) {
		// TODO Auto-generated method stub
		return null;
	}

}
